<!DOCTYPE html>
<html lang="en">

	<include file="Public:header" />
		<!-- Side menu -->
		<!-- 引用header.html -->
		<!-- /Side menu -->
	   
		<!-- Main window -->
		<div class="main_container" id="users_page">

			<div class="row-fluid">

				<h2 class="heading">
			   咨询管理
				</h2>
			</div> <!-- /row-fluid -->


			<!--此处往下为代码改写部分-->
			<div class="row-fluid">
				<div class="widget widget-padding span12">
					<div class="widget-header">
						<i class="icon-group"></i>
						<h5>咨询列表</h5>
						<div class="widget-buttons">
							<!--<a href="#" data-title="Add User" data-toggle="modal" data-target="#example_modal"><i class="icon-plus"></i></a>-->
							<a href="#" data-title="Collapse" data-collapsed="false" class="collapse"><i class="icon-chevron-up"></i></a>
						</div>
					</div>
					<div class="widget-body table-responsive ">
						<table id="users" class="table table-condensed table-striped table-bordered dataTable">
							<thead>
							<tr>
								<th>序号</th>
								<th>用户名</th>
								<th>大师名</th>
								<th>大师课堂提问</th>
								<th>操作</th>
							</tr>
							</thead>
						<tbody>
								 <volist name="console" id="vo">
							<tr>
							<td>{$key+1}</td>
							<td>{$vo.username}</td>
							<td>{$vo.master_name}</td>
							 <!-- <td><img src="../../../Public/Admin/photo/{$vo.photo}" width="80" alt="头像" title="{$vo.aliasname}"></td> -->
							 <!-- <td><img src="__PUBLIC__/Uploads/sportphoto/{$vo.master_picture}" width="40" alt="头像" ></td> -->
							 <td>{$vo.console_content}</td>
							 <td>
									<if condition="$vo.isrequire eq '0'">已回复
									<else/>未回复
									</if>
							  </td>

						<td>

						<switch name="vo.isrequire">
                        <case value="1"><a href="__URL__/isrequire/console_id/{$vo.console_id}/isrequire/{$vo.isrequire}">已回复</a> |</case>
                        <default /><a href="__URL__/isrequire/console_id/{$vo.console_id}/isrequire/{$vo.isrequire}">未回复</a> |
                        </switch>

          
											 |
						<a href="__URL__/delconsole/console_id/{$vo.console_id}" onclick="return confirm('你确定要删除吗？')"><i class="icon-trash"></i>删除</a>
						</td>


						</tr>
						</volist>
							</tbody>
						</table>
					</div> <!-- /widget-body -->
				</div> <!-- /widget -->
			</div> <!-- /row-fluid -->

		</div>
		<!-- /Main window -->

	</div><!--/.fluid-container-->
</div><!-- wrap ends-->
</body>
</html>